﻿import gs.TweenLite;
import mx.utils.Delegate;
class cn.eminia.AS2.BoEII_Click {
	// Btn of Effect
	function BoEII_Click(scope, btn, mnact, obj) {
		if (btn.real != null) 	btn.hitArea = btn.real;btn.real._alpha = 0;		
		if (obj.over != null) 	btn._onRollOver = Delegate.create(scope, obj.over);
		if (obj.out != null) 	btn._onRollOut = Delegate.create(scope, obj.out);
		if (mnact != null) 		btn._onRelease = Delegate.create(scope, mnact);
		btn.onRollOver = function(evt) {
			this._onRollOver({id:cn.eminia.AS2.BoGV3.getLastID(this._name),it:this});
			this.gotoAndPlay('s1');
		};
		btn.onRollOut = btn.onReleaseOutside=function () {
			this._onRollOut({id:cn.eminia.AS2.BoGV3.getLastID(this._name),it:this});
			this.gotoAndPlay('s2');
		};
		btn.onRelease = function (evt) { 
			this._onRelease({id:cn.eminia.AS2.BoGV3.getLastID(this._name),it:this});  
		}; 
		if (obj != undefined) for (var i in obj) {btn[i] = obj[i];} 
	}
}
